<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Acount Model Config</title>
	
	<jsp:include page="/core/tool/resources.jsp"></jsp:include>
	<script src="./modelmanage.js"></script>
		
</head>
<body>

	<div id="toolbar">
	   <a class="easyui-linkbutton" iconCls="icon-add" onclick="click_add()">新增</a>
	   <a class="easyui-linkbutton" iconCls="icon-reload" onclick="javascript:$('#dg').edatagrid('reload')">刷新</a>
	</div>

	<table id="dg" class="easyui-edatagrid" style="margin-top:20px"
            data-options="toolbar:'#toolbar',rownumbers:true,singleSelect:true,pagination:true,method:'post',idField:'modelCode',
            	 sortOrder:'desc', sortName:'code', pageSize:20, url:'./modelquery.json', onDblClickRow:click_row_edit">
        <thead>
            <tr>
           	 	<th data-options="field:'code',width:80" sortable="true">编码</th>
                <th data-options="field:'name',width:100">名称</th>
                <th data-options="field:'strategyClass',width:300">方法</th>
                <th data-options="field:'desp',width:300">说明</th>
                <th data-options="field:'delete',width:100, formconfig:{type:'linkbutton',onclick:'click_row_delete()',options:{iconCls:'icon-remove',text:'删除'}}">删除</th>
				<th data-options="field:'edit',width:100, formconfig:{type:'linkbutton',onclick:'click_row_edit()',options:{iconCls:'icon-edit',text:'编辑'}}">编辑</th>
            </tr>
        </thead>
    </table>

</body>
</html>